﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.CustomerManage.StartOrder
{
    public partial class FrmPhotoNum : Form
    {
        public FrmStartOrder frm { get; set; }
        public int ModifyNum { get; set; }//修改后的数量
        public FrmPhotoNum()
        {
            InitializeComponent();
        }

        private void FrmPhotoNum_Load(object sender, EventArgs e)
        {
            Cursor = Cursors.Default;
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            try
            {
                int photoNum = Convert.ToInt32(txtPHotoNum.Value);
                if (photoNum > 0)
                {
                    DialogResult = DialogResult.OK;
                    try
                    {
                        frm.PhotoNum = photoNum;
                    }
                    catch                    {                      
                        
                    }
                    
                    ModifyNum = photoNum;
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "确定", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }
    }
}
